<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="YouTubeService,com.adobe.webapis.youtube.YouTubeService,END_POINT,apiKey,users,videos,urlLoader" name="keywords">
<title>com.adobe.webapis.youtube.YouTubeService</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'YouTubeService - Adobe ActionScript 3.0 Library - youtube';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?com/adobe/webapis/youtube/YouTubeService.html&amp;com/adobe/webapis/youtube/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;YouTubeService</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class YouTubeService"); titleBar_setSubNav(false,true,false,false,true,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.adobe.webapis.youtube</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class YouTubeService</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">YouTubeService <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../images/inherit-arrow.gif"> com.adobe.webapis.URLLoaderBase</td>
</tr>
</table>
<p></p>
  The YouTubeService class abstracts all functionality for the YouTube
  API.  
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#apiKey">apiKey</a> : String = ""<div class="summaryTableDescription">
   The developer API can be generated from your profile page on YouTube.com.</div>
</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#END_POINT">END_POINT</a> : String = "http://www.youtube.com/api2_rest"<div class="summaryTableDescription">[static]
   This is the end point for the service that we talk to.</div>
</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#users">users</a> : <a href="methodgroups/Users.html">Users</a>
<div class="summaryTableDescription">[read-only]</div>
</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#videos">videos</a> : <a href="methodgroups/Videos.html">Videos</a>
<div class="summaryTableDescription">[read-only]</div>
</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#YouTubeService()">YouTubeService</a>(apiKey:String = "")</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
</table>
</div>
<a name="eventSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Events</div>
<table id="summaryTableEvent" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Event</th><th>Summary</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:onGetDetails">onGetDetails</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Broadcast when video information has been loaded from YouTube in response to
  Videos.getDetails() being called.</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:onGetProfile">onGetProfile</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Broadcast when video information has been loaded from YouTube in response to
  Users.getProfile() being called.</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:onListByTag">onListByTag</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Broadcast when video information has been loaded from YouTube in response to
  Videos.listByTag() being called.</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:onListByUser">onListByUser</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Broadcast when video information has been loaded from YouTube in response to
  Videos.listByUser() being called.</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:onListFavoriteVideos">onListFavoriteVideos</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Broadcast when video information has been loaded from YouTube in response to
  Users.listFavoriteVideo() being called.</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:onListFeatured">onListFeatured</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Broadcast when video information has been loaded from YouTube in response to
  Videos.listFeatured() being called.</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:onListFriends">onListFriends</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Broadcast when video information has been loaded from YouTube in response to
  Users.listFriends() being called.</td><td class="summaryTableOwnerCol">YouTubeService</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="apiKey"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">apiKey</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public var apiKey:String = ""</code><p>
   The developer API can be generated from your profile page on YouTube.com.
   </p></div>
<a name="END_POINT"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">END_POINT</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static var END_POINT:String = "http://www.youtube.com/api2_rest"</code><p>
   This is the end point for the service that we talk to.
   </p></div>
<a name="urlLoader"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">urlLoader</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>urlLoader:URLLoader</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;youtubeservice_internal function get urlLoader():URLLoader</code>
<br>
</div>
<a name="users"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">users</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>users:<a href="methodgroups/Users.html">Users</a></code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get users():<a href="methodgroups/Users.html">Users</a></code>
<br>
</div>
<a name="videos"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">videos</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>videos:<a href="methodgroups/Videos.html">Videos</a></code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get videos():<a href="methodgroups/Videos.html">Videos</a></code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="YouTubeService()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">YouTubeService</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function YouTubeService(apiKey:String = "")</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">apiKey</span>:String</code> (default = "<code></code>")<code></code></td>
</tr>
</table>
</div>
<div class="detailSectionHeader">Event detail</div>
<a name="event:onGetDetails"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onGetDetails</td><td class="detailHeaderType">event&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href=""><code>com.adobe.webapis.youtube.events.YouTubeServiceEvent</code></a>
<br>
<p></p><p>
  Broadcast when video information has been loaded from YouTube in response to
  Videos.getDetails() being called.
   The event contains the following properties:  
  data.videoDetails A VideoDetail instance
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube.methodgroups.Videos/getDetails" target="">com.adobe.webapis.youtube.methodgroups.Videos.getDetails</a>
<br>
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube/VideoDetails" target="">com.adobe.webapis.youtube.VideoDetails</a>
</div>
</div>
<a name="event:onGetProfile"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onGetProfile</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href=""><code>com.adobe.webapis.youtube.events.YouTubeServiceEvent</code></a>
<br>
<p></p><p>
  Broadcast when video information has been loaded from YouTube in response to
  Users.getProfile() being called.
   The event contains the following properties:  
  data.profile The Profile for the specified user.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube.methodgroups.Users/getProfile" target="">com.adobe.webapis.youtube.methodgroups.Users.getProfile</a>
<br>
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube/Profile" target="">com.adobe.webapis.youtube.Profile</a>
</div>
</div>
<a name="event:onListByTag"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onListByTag</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href=""><code>com.adobe.webapis.youtube.events.YouTubeServiceEvent</code></a>
<br>
<p></p><p>
  Broadcast when video information has been loaded from YouTube in response to
  Videos.listByTag() being called.
   The event contains the following properties:  
  data.videoList An Array of Video ojects.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube.methodgroups.Videos/listByTag" target="">com.adobe.webapis.youtube.methodgroups.Videos.listByTag</a>
<br>
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube/Video" target="">com.adobe.webapis.youtube.Video</a>
</div>
</div>
<a name="event:onListByUser"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onListByUser</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href=""><code>com.adobe.webapis.youtube.events.YouTubeServiceEvent</code></a>
<br>
<p></p><p>
  Broadcast when video information has been loaded from YouTube in response to
  Videos.listByUser() being called.
   The event contains the following properties:  
  data.videoList An Array of Video ojects.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube.methodgroups.Videos/listByUser" target="">com.adobe.webapis.youtube.methodgroups.Videos.listByUser</a>
<br>
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube/Video" target="">com.adobe.webapis.youtube.Video</a>
</div>
</div>
<a name="event:onListFavoriteVideos"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onListFavoriteVideos</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href=""><code>com.adobe.webapis.youtube.events.YouTubeServiceEvent</code></a>
<br>
<p></p><p>
  Broadcast when video information has been loaded from YouTube in response to
  Users.listFavoriteVideo() being called.
   The event contains the following properties:  
  data.videoList An Array of Video ojects.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube.methodgroups.Users/listFavoriteVideo" target="">com.adobe.webapis.youtube.methodgroups.Users.listFavoriteVideo</a>
<br>
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube/Video" target="">com.adobe.webapis.youtube.Video</a>
</div>
</div>
<a name="event:onListFeatured"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onListFeatured</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href=""><code>com.adobe.webapis.youtube.events.YouTubeServiceEvent</code></a>
<br>
<p></p><p>
  Broadcast when video information has been loaded from YouTube in response to
  Videos.listFeatured() being called.
   The event contains the following properties:  
  data.videoList An Array of Video ojects.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube.methodgroups.Videos/listFeatured" target="">com.adobe.webapis.youtube.methodgroups.Videos.listFeatured</a>
<br>
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube/Video" target="">com.adobe.webapis.youtube.Video</a>
</div>
</div>
<a name="event:onListFriends"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onListFriends</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href=""><code>com.adobe.webapis.youtube.events.YouTubeServiceEvent</code></a>
<br>
<p></p><p>
  Broadcast when video information has been loaded from YouTube in response to
  Users.listFriends() being called.
   The event contains the following properties:  
  data.friendList An Array of Friend ojects.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube.methodgroups.Users/listFriends" target="">com.adobe.webapis.youtube.methodgroups.Users.listFriends</a>
<br>
<a href="../youtube/YouTubeService.html#com.adobe.webapis.youtube/Friend" target="">com.adobe.webapis.youtube.Friend</a>
</div>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">
<footer> 
</footer>
</center>
</div>
</body>
</html>
<!-- -->
